import { ApiProperty } from '@nestjs/swagger'

export class createDto {
  @ApiProperty()
  username: string
  @ApiProperty()
  password: string
}
export class createWxDto extends createDto {
  @ApiProperty()
  wxOpenid: string
  @ApiProperty()
  phone: string
}
export class loginDto {
  @ApiProperty()
  username: string
  @ApiProperty()
  password: string
}
export class updateDto {
  @ApiProperty()
  avator: string
  @ApiProperty()
  nickName: string
  @ApiProperty()
  phone: string
  @ApiProperty()
  wxOpenid: string
}
export class wxLoginDto {
  @ApiProperty({
    description: '加密数据',
  })
  encryptedData: string
  @ApiProperty({
    description: '加密算法的初始向量',
  })
  iv: string
  @ApiProperty({
    description: '登录凭证',
  })
  code: string
}
